package common.adventurecard.events;

import common.AdvCard;
import common.Events;
import common.Game;

public class BagOfGold extends Events implements AdvCard {
	//Klassen ger +1 till coins hos currentPlayer.
	
	private static final long serialVersionUID = 1L;
	private final int priority = 4;
	private final String name = "Bag of Gold";

	@Override
	public int getPriority() {
		return this.priority;
	}

	@Override
	public boolean doStuff(final Game sg) {
		sg.addToLog(sg.getPlayer(sg.getCurrentPlayer()).getName()
				+ " has found a bag of gold!\n");
		sg.getPlayer(sg.getCurrentPlayer()).setCoins(
				sg.getPlayer(sg.getCurrentPlayer()).getCoins() + 1);
		return true;
	}

	@Override
	public String getName() {
		return this.name;
	}

}
